home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 8434 / 8434.xpi / chrome / content / mailOverlay.js < prev    next >
Text File  |  2008-11-16  |  933b  |  20 lines

  1. var googleredesignedMailOverlay ={
  2. find: function(e) {
  3.     var appName = googleredesignedCommon.getAppName();
  4.     var uri = "http://userstyles.org/style/search_text/" + encodeURIComponent(appName);
  5.     if (appName == "Thunderbird") {
  6.         uri = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService).newURI(uri, null, null);
  7.         var protocolSvc = Components.classes["@mozilla.org/uriloader/external-protocol-service;1"].getService(Components.interfaces.nsIExternalProtocolService);
  8.         protocolSvc.loadUrl(uri);
  9.     } else if (appName == "SeaMonkey") {
  10.         openUILinkIn(uri, "window");
  11.     }
  12. },
  13. popupShowing: function(event) {
  14.     var findStyle = document.getElementById("googleredesigned-find-app");
  15.     if (!findStyle.hasAttribute("label")) {
  16.         findStyle.setAttribute("label", document.getElementById("googleredesigned-strings").getFormattedString("findStyleApp", [googleredesignedCommon.getAppName()]));
  17.     }
  18. },
  19. }
  20.